package com.gency.subscribe.web.configuration.ini;

import com.alibaba.fastjson.serializer.SerializeConfig;
import com.alibaba.fastjson.serializer.SimpleDateFormatSerializer;

public class FastJosnSerializerKit {

	
	public static SimpleDateFormatSerializer datetimeFormat  ;
	public static SimpleDateFormatSerializer dateFormat  ;
	public static LongFormatSerializer longFormat;
	static{
		datetimeFormat = new SimpleDateFormatSerializer("yyyy-MM-dd HH:mm:ss");
		dateFormat = new SimpleDateFormatSerializer("yyyy-MM-dd");
		longFormat = LongFormatSerializer.getInstance();
		SerializeConfig.getGlobalInstance().put(Long.class, longFormat);
		SerializeConfig.getGlobalInstance().put(java.util.Date.class, datetimeFormat);//jdbc:datetime -> Timestamp
		SerializeConfig.getGlobalInstance().put(java.sql.Timestamp.class, longFormat);
	}
	public static void init(){

	}
}
